<? 
function h_user_avatar($user){

    $str="<a class='avatar plain' href='".REQUEST_BASE."member/".$user['serial']."/'>";
    if($user['image']){
        $str.="<img width='50' src='".RESOURCE_BASE."com.yizin.site/".Utils::getPathBySerial($user['serial'])."/".$user['image']."' class='book'/>";
    }
    else{
  			$str.="<img width='50' src='".RESOURCE_BASE."site/images/user_face_default.gif'/>";
	  }
    $str.="</a>";
		return $str;
}
?>
